import { createStore, applyMiddleware } from 'redux';
import boowerHistory from 'react-router'
import { connectRouter } from 'connected-react-router';
import { combineReducers } from 'redux-immutable';
import { createBrowserHistory} from 'history'
import { routerMiddleware } from 'react-router-redux'
import reducer1 from './reducer/index';

// const store = createStore(reducer1, applyMiddleware(sagaMiddleware))
const reducer = combineReducers({reducer1})
const history = createBrowserHistory();
const middleware = routerMiddleware(history)
const store = createStore(reducer1,
  applyMiddleware(middleware))

// const history = syncHistoryWithStore(boowerHistory,store)
export default store